package com.zhiwang.xiaoqu.download

import java.io.File

/**
 * [status] 0 未开始 1 正在下载 2 暂停
 */
data class FileProgress(var name: String, var url: String, var progress: Int, var status: Int) {

    fun statusText(): String = when {
        status == 0 -> "下载"
        status == 1 -> "正在下载ing"
        status == 2 -> "继续下载"
        else -> "..."
    }
}


class ProgressEvent(var url: String, var progress: Int) {

    var apkFile: File? = null
}

class PauseEvent(var url: String, var progress: Int)